
import 'dart:convert';

PropertyMessage propertyMessageFromJson(String str) =>
    PropertyMessage.fromJson(json.decode(str));

String propertyMessageToJson(PropertyMessage data) =>
    json.encode(data.toJson());

class PropertyMessage {
  PropertyMessage({
    this.message,
  });

  List<Message>? message;

  factory PropertyMessage.fromJson(Map<String, dynamic> json) =>
      PropertyMessage(
        message:
            List<Message>.from(json["message"].map((x) => Message.fromJson(x))),
      );

  Map<String, dynamic> toJson() => {
        "message": List<dynamic>.from(message!.map((x) => x.toJson())),
      };
}

class Message {
  Message({
    this.propertyName,
    this.message,
  });

  String? propertyName;
  String? message;

  factory Message.fromJson(Map<String, dynamic> json) => Message(
        propertyName: json["propertyName"],
        message: json["message"],
      );

  Map<String, dynamic> toJson() => {
        "propertyName": propertyName,
        "message": message,
      };
}
